using UnityEngine;
using UnityEngine.InputSystem.XR;

[CreateAssetMenu(menuName = "Data/State_Machine/player_States/Idle", fileName = "Player_State_Idle")]
public class Player_State_Idle : Player_State
{
    [SerializeField] float deceleration = 5.0f;
    public override void Enter()
    {
        base.Enter();


    }
    public override void LogicUpdate()
    {


        if (input.LeftAttack)
        {
            state_Machine.Switch_State(typeof(Player_State_Attack));
            controller.NowDir = false;
            controller.SetPlayerDir();
        }
        if(input.RightAttack)
        {
            state_Machine.Switch_State(typeof(Player_State_Attack));
            controller.NowDir = true;
            controller.SetPlayerDir();
        }

    

    }
    public override void PhysicUptate()
    {
        
    }
}
